package com.jr.service.impl;


import com.jr.entity.Province;
import com.jr.dao.ProvinceDao;
import com.jr.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 省份表
 *
 * @author Snoopy
 * @since 1.0.0 2022-12-31
 */
@Service
public class ProvinceServiceImpl implements ProvinceService {
    @Autowired
    private ProvinceDao provinceDao;

    @Override
    public List<Province> getProvinces() {
        List<Province> provinces = provinceDao.selectProvinceAll();
        return provinces;
    }
}